public class TestMain {
    public static void main(String[] args) {
        // 1. 实例化教师并开课
        Teacher teacher = new Teacher("T001", "张老师", "男");
        Course course = new Course("C001", "Java 程序设计", "综教学楼 1921", "周四 14:00-16:00");
        teacher.openCourse(course);

        // 2. 实例化学生并选课
        Student student = new Student("2024312071", "曾敬文", "男");
        student.selectCourse(course);

        // 3. 打印学生课表
        student.printCourseSchedule();

        // 4. 学生退课
        student.dropCourse();

        // 5. 退课后再次打印课表
        student.printCourseSchedule();
    }
}